package fr.umlv.m2.jee.pmlv.persistence.ldapLink.dao;

import java.util.List;

import fr.umlv.m2.jee.pmlv.framework.dao.IDAO;
import fr.umlv.m2.jee.pmlv.persistence.ldapLink.UserSubject;
import fr.umlv.m2.jee.pmlv.persistence.ldapLink.UserSubjectPK;

/**
 * In this interface you can add methods which represents
 * request with a user and a subject that we need in the application.
 * @author jenseric
 *
 */
 public interface IUserSubjectDAO extends IDAO< UserSubjectPK, UserSubject > {
    public List<UserSubject> findByUserUidAndByYear(String uid, int year);
    public List<UserSubject> findByUserUid(String uid);
    public List<UserSubject> findResponsibleBySubjectAndByYear(long sub_id, int year);
}